<?php
/**
 * @link https://ym2.cleverstone.top
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

namespace builder\form\util\control;

use builder\base\BuilderTrait;

/**
 * 控件继承类
 * @author cleverstone
 * @since ym2.0
 */
abstract class Control
{
    use BuilderTrait;

    /**
     * Control constructor.
     */
    public function __construct()
    {
        $this->init();
    }

    /**
     * Initialize
     */
    public function init()
    {
    }

    /**
     * 输出选项数组
     * @return array
     */
    abstract public function _toArray();
}